<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/static/adminLogin/css/amazeui.css" />
    <link rel="stylesheet" href="/static/adminLogin/css/index.css" />
    <link rel="stylesheet" href="/static/adminLogin/css/admin.css" />
    <title></title>
</head>
<body>
<div class="nav-header"style="width: 88%;height: 88px;background:#30303a;border:1px solid;position: absolute;z-index: 50;right:0;padding-left: 15px;">
    <div style="line-height: 56px;">
        <div class="nav-logo-tai">
            <span class="nav-username1"><img src="/static/adminLogin/image/old.png" width="100%"height="100%"align="left"></span>
            <span class="nav-username">你好,斯摩格后台</span>
        </div>
    <!--<span class="admin-parent q1">-->
        <!--<a class="am-cf" ><span class="am-icon-wrench"></span> 工具 <span class="am-icon-sort-desc"></span></a>-->
        <!--<ul class="am-list">-->
            <!--<li><a href="" class="am-cf gmregister_href">添加管理</a></li>-->
        <!--</ul>-->
    <!--</span>-->
        <!--<span class="admin-parent q1">-->
        <!--<a class="am-cf" ><span class="am-icon-file"></span> 数据 <span class="am-icon-sort-desc"></span></a>-->
        <!--<ul class="am-list">-->
            <!--<li><a href="" class="am-cf shop_href">农贸市场</a></li>-->
            <!--<li><a href="" class="am-cf histroy_href">历史邮件</a></li>-->
            <!--<li><a href="" class="am-cf announce_href">滚动公告</a></li>-->
        <!--</ul>-->
    <!--</span>-->
        <!--<span class="admin-parent nav-tool q1" style="background: #c6a68f!important;">-->
        <!--<a class="am-cf"><span class="am-icon-gear"></span> 设置 <span class="am-icon-sort-up"></span></a>-->
        <!--<ul class="am-list">-->
            <!--<li><a href="" class="am-cf vipset_href">VIP设置</a></li>-->
            <!--<li><a href="" class="am-cf worship_href">供奉设置</a></li>-->
            <!--<li><a href="" class="am-cf mail_href">邮件设置</a></li>-->
            <!--<li><a href="" class="am-cf weather_href">天气设置</a></li>-->
            <!--<li><a href="" class="am-cf blessing_href">祈福令设置</a></li>-->
        <!--</ul>-->
    <!--</span>-->
        <span class='nav-tool'style="background: #fa984b">
            <span class="quit_gm"><span class="am-icon-power-off"></span>退出</span>
        </span>
    </div>
</div>
<div class="admin-sidebar am-offcanvas  am-padding-0" id="admin-offcanvas" style="width: 12%;background: #30303a">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
        <div class='index-nav-logo'><a href="{:url('admin/index/main')}"><img src="/static/adminLogin/image/old.png" width='100%' height="100%"></a></div>
        <div class="index-nav-user">
            <span style="display: block">斯摩格后台</span>
            <span class="user-admins"></span>
        </div>
        <ul class="am-list admin-sidebar-list">
            <li class="admin-parent showNav">
                <a class="am-cf q2" data-am-collapse="{target: '#collapse-nav1'}"><span class="am-icon-users"></span> 用户管理 <span class="am-icon-angle-right am-fr am-margin-right" id="arrow"></span></a>
                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav1">
                    <li class="showList"><a href="{:url('admin/index/index')}" class="am-cf userlist_href">用户列表</a></li>
                </ul>
            </li>
            <li class="admin-parent showNav">
                <a class="am-cf q2" data-am-collapse="{target: '#collapse-nav2'}"><span class="am-icon-users"></span> 咨询管理 <span class="am-icon-angle-right am-fr am-margin-right" id="arrow"></span></a>
                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav2">
                    <li class="showList"><a href="{:url('admin/index/newsAdd')}" class="am-cf userlist_href">添加资讯</a></li>
                    <li class="showList"><a href="{:url('admin/index/newsAdmin')}" class="am-cf userlist_href">资讯管理</a></li>
                </ul>
            </li>
            <li class="admin-parent showNav">
                <a class="am-cf q2" data-am-collapse="{target: '#collapse-nav3'}"><span class="am-icon-users"></span> banner管理 <span class="am-icon-angle-right am-fr am-margin-right" id="arrow"></span></a>
                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav3">
                    <li class="showList"><a href="{:url('admin/index/banner')}" class="am-cf userlist_href">添加banner</a></li>
                </ul>
            </li>
            <li class="admin-parent showNav">
                <a class="am-cf q2" data-am-collapse="{target: '#collapse-nav4'}"><span class="am-icon-users"></span> 游戏管理 <span class="am-icon-angle-right am-fr am-margin-right" id="arrow"></span></a>
                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav4">
                    <li class="showList"><a href="{:url('admin/index/game')}" class="am-cf userlist_href">添加游戏</a></li>
                    <li class="showList"><a href="{:url('admin/index/gameAdmin')}" class="am-cf userlist_href">管理游戏</a></li>
                </ul>
            </li>
            <li class="admin-parent showNav">
                <a class="am-cf q2" data-am-collapse="{target: '#collapse-nav5'}"><span class="am-icon-users"></span> 微信管理 <span class="am-icon-angle-right am-fr am-margin-right" id="arrow"></span></a>
                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav5">
                    <li class="showList"><a href="{:url('admin/index/weAdmin')}" class="am-cf userlist_href">管理微信</a></li>
                </ul>
            </li>
            <!--<li class="admin-parent showNav">-->
                <!--<a class="am-cf q2" data-am-collapse="{target: '#collapse-nav2'}"><span class="am-icon-users"></span> 管理员添加 <span class="am-icon-angle-right am-fr am-margin-right" id="arrow"></span></a>-->
                <!--<ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav5">-->
                    <!--<li class="showList"><a href="{:url('admin/index/game')}" class="am-cf userlist_href">管理员添加 </a></li>-->
                <!--</ul>-->
            <!--</li>-->
        </ul>
    </div>
</div>

{block name="main"}
{/block}

<script src='/static/index/js/jquery-1.11.0.min.js'></script>

<script>
    $(function(){
//        用户名, 登录拦截
        $.post('{:url("admin/Login/getLogin")}',function(res){
            var res=JSON.parse(res);
            if(res==null){
                window.location.href='jywlkj.html';
            }else{
                $('.user-admins').text(res);
            }
        });
    })

//    退出
    $('.nav-tool').click(function(){
        $.post('{:url("admin/Login/deLogin")}',function(res){
            window.location.href='jywlkj.html';
        })
    })

    $('.admin-sidebar-list>li>.q2').click(function(){
        var li=$(this).next();
        console.log(li.css('height'));
        var i=li.children()['length'];   //获取有多少条li
        if(li.css('height')!=75*i+'px'){
            li.removeClass('am-in');
        }else{
            li.addClass('am-in');
        }
    })
</script>
</body>
</html>